import {
  CreateReportRuleParam,
  DeleteReportRuleParam,
  EditReportRuleParam,
  ReportRule,
} from './model/reportRuleModel'

import { defHttp } from '/@/utils/http/axios'

export const getReportRuleList = (params: any) =>
  defHttp.get<ReportRule[]>({ url: '/report_rule/list', params })

export const createReportRule = (params: any) =>
  defHttp.post<CreateReportRuleParam>({ url: '/report_rule/create', params })

export const editReportRule = (params: any) =>
  defHttp.post<EditReportRuleParam>({ url: '/report_rule/edit', params })

export const deleteReportRule = (params: any) =>
  defHttp.post<DeleteReportRuleParam>({ url: '/report_rule/delete', params })
